import { TypedConfig } from '@yolanda-qn/eight-electrodes-report-lib/dist/types/src/typings'
import { Vue, Component, Ref, Provide } from 'vue-property-decorator'

@Component({})
export default class extends Vue {
  userId = ''
  timestamp = 0
  // 因为iOS需要将数值返回给后台，因为精度问题
  // 所以有些值是转为字符串，所以我们拿到数据之后需要转回来
  notNeedToNumber = Object.freeze(['id', 'user_id', 'name', 'avatar']) // 不需要将字符串转为数值的指标
  measureData = {}
  measureTime = ''
  userAge = 0
  avatarUrl: string = ''
  weight_unit = 'kg'
  config: Partial<TypedConfig> = {}
  @Ref() readonly reportRef!: HTMLElement
  @Ref() readonly reportShareRef!: HTMLElement
  @Ref() readonly ReportSwipeRef!: HTMLElement

  canvasImg = ''
  shareImg = ''


}
